<template id="login_land">
	<div class="login_land" @click="weixin()">

		<!--返回键-->
		<div class="login_back">
			<router-link to="/login"><img src="../../assets/images/login/back.png" /></router-link>
		</div>
		<!--返回键结束-->

		<!--登陆标题-->
		<div class="login_title">
			<p>登陆</p>
		</div>
		<!--登陆标题结束-->
		<!--{{inge}}-->
		<!--{{code}}-->
		<!--请输入手机号/密码-->
		<div class="login_entry">

			<!--请输入手机号-->
			<div class="login_tel">
				<div class="login_tel_left">
					<img src="../../assets/images/login/phone.png" />
					<input type="number" autocomplete="on" name="" id="" placeholder="请输入手机号" v-model="formLabelAlign.phone" />
				</div>
				<div class="login_tel_right">
					<img src="../../assets/images/login/clear.png">
				</div>
			</div>
			<!--请输入密码-->
			<div class="login_password">
				<div class="login_password_left">
					<img src="../../assets/images/login/pwd.png" />
					<input type="password" autocomplete="on" name="" id="" placeholder="请输入密码" v-model="formLabelAlign.password" />
				</div>
				<div class="login_password_right">
					<img src="../../assets/images/login/clear.png">
				</div>
			</div>

		</div>
		<!--请输入手机号/密码结束-->

		<!--登陆按钮-->
		<div class="login_press">
			<router-link to=""><button @click="login()">登  陆</button></router-link>
		</div>
		<!--登陆按钮结束-->

		<!--忘记密码?登陆遇到问题?-->
		<div class="login_trouble">
			<router-link to="/forgot_password">忘记密码? 登陆遇到问题?</router-link>
		</div>
		<!--忘记密码?登陆遇到问题?结束-->

		<!--其他登陆方式-->
		<div class="login_way">

			<div class="login_way_title">
				<span></span>
				<font>其他登陆方式</font><span></span>
			</div>

			<div class="login_way_mode">
				<img src="../../assets/images/login/weibo.png" />
				<router-link to="/login_qq">
					<a href="http://wiki.connect.qq.com/%E4%BD%BF%E7%94%A8authorization_code%E8%8E%B7%E5%8F%96access_token">
						<img src="../../assets/images/login/qq.png" />
						<!--{{code}}-->
					</a>
				</router-link>

				<a href="https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx804dd171dbba7021&redirect_uri=http://yogahome.top/yujia/coach/wexinlogin&response_type=code==1&scope=snsapi_userinfo&state=123456#wechat_redirect">
					<img src="../../assets/images/login/wechat.png" />
				</a>

			</div>

		</div>
		<!--其他登陆方式结束-->

		<!--还没有账户?立即注册-->
		<div class="login_register">
			<font>还没有账号? </font>
			<p>
				<router-link to="/register"><span>立即注册</span><img src="../../assets/images/login/back_green.png" /></router-link>
			</p>
		</div>

		<!--还没有账户?立即注册结束-->

	</div>

</template>

<script>
	//	 import Api from '../../api/api'
	export default {
		name: 'login_land',
		components: {},
		data() {
			return {
				vaite: "",

				apiurl1: 'http://yogahome.top/yujia/user/qqlogin',
				appid: 1,
				code: 1,
				inge: '',
				formLabelAlign: {
					phone: "",
					password: "",
				}

			}
		},

		computed: {

		},
		mounted() {

		},
		created() {

		},
		methods: {
			weixin() {
				let obj = {
					//请求的参数
					code: 1,
					//					appid:wx804dd171dbba7021,

				};
				let _this = this
				let qs = require('qs');
				this.$axios.get("http://wiki.connect.qq.com/%E4%BD%BF%E7%94%A8authorization_code%E8%8E%B7%E5%8F%96access_token",
						qs.stringify(obj), {
							headers: {
								'Content-Type': 'application/x-www-form-urlencoded'
							}

						}
					)
					.then(function(response) {

						//                       console.log(this.response.code)

					})
					.catch(function(error) {
						console.log(error);
					});
//				window.location.href="https://open.weixin.qq.com/connect/qrconnect?appid=wx804dd171dbba7021&redirect_uri=http%3a%2f%2fyo%2f%2f%3a%2f%2fyogahome.top%2fyujia%2fcoach%2fwexinlogin&response_type=code&scope=snsapi_userinfo&state=YGhome2018#wechat_redirect";
				this.$axios.get("https://open.weixin.qq.com/connect/qrconnect?appid=wx804dd171dbba7021&redirect_uri=http%3a%2f%2fyo%2f%2f%3a%2f%2fyogahome.top%2fyujia%2fcoach%2fwexinlogin&response_type=code&scope=snsapi_userinfo&state=YGhome2018#wechat_redirect")
					.then(function(response) {

						// console.log(this.response.code) 你们在抱啥呢， 我都能听到     我两再说学咱这行好苦 还好还好   你是大神   
					})
					.catch(function(error) {
						console.log(error);
					});
			}
		},

	}
</script>

<style>
	@import "../../assets/css/login_land.css";
</style>